package com.xianye.erp.factory;

import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


@Component("apiFacade")
public class ApiFacade {
	@Value(value="${urls}")
    private String url ;
	@Value(value="${appkey}")
    private String appkey;
	@Value(value="${secret}")
    private String secret;
    protected String sessionKey;

    private String redirect_uri;

    protected  TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);

    public  ApiFacade createFacadeByStore(Object object){
        ApiFacade facade = new ApiFacade();


        return facade;
    }


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    public String getRedirect_uri() {
        return redirect_uri;
    }

    public void setRedirect_uri(String redirect_uri) {
        this.redirect_uri = redirect_uri;
    }
}
